﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class healthChange : MonoBehaviour
{
    public Health health;
    public Button button;
    // Start is called before the first frame update
    void Start()
    {
        health = GetComponent<Health>();
        button = GetComponent<Button>();
        health.OnHealthChanged += played;
    }

    private void played(int obj)
    {
        Debug.Log(obj);
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
